
import os
import uuid
import time
from crudtool import GenericCrudTool
from bip44 import Wallet
from mnemonic import Mnemonic
import random
import hashlib
english_wordlist = Mnemonic("english").wordlist
script_dir = os.path.dirname(os.path.abspath(__file__))



tool=GenericCrudTool(host="127.0.0.1",user="root",password="root",db="coin_account")

def create_tags():
    entropy=os.urandom(16)
    hex_entropy = entropy.hex()
    hash_bytes=hashlib.sha256(entropy).digest()
    print(entropy.hex())
    binary_entropy = ''.join(f'{byte:08b}' for byte in entropy)
    print(binary_entropy)

if __name__ == "__main__":
    create_tags()
    print("hello world")